    package org.fly.dao;

    import org.fly.bean.Cart;
    import org.fly.bean.query.CartQuery;
    import org.apache.ibatis.annotations.Param;
    import org.fly.bean.warpper.CartGroupWarpper;
    import org.springframework.stereotype.Repository;

    import java.util.List;

    /**
    * Created by autoCode on 2018-04-08 15:31:55.
    */
    @Repository
    public interface CartDao {

    List<Cart> list(CartQuery query);

    long count(CartQuery query);

    void  insert(Cart data);

    void update(Cart data);

    Cart findById(String id);

    void delete(String id);

    void deleteByIdList(@Param(value = "ids") List<String> ids);

    List<Cart> listByIds(@Param(value = "ids") List<String> ids);

    List<Cart> listBySupplierIds(@Param(value = "ids") List<String> ids);

    List<CartGroupWarpper> listCartGroup(CartQuery query);

    long countCartGroup(CartQuery query);


}
